﻿@model LeEdu.MODEL.Courses
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<!-- 网页头部分布视图 -->
@Html.Partial("~/Views/Shared/HouTai_Header.cshtml")
<body>
    <!-- 网页导航菜单分布视图 -->
    @Html.Partial("~/Views/Shared/HouTai_DaoHang.cshtml")

    <div class="container">
        <div class="row">

            <!-- 网页左侧菜单分布视图 -->
            @Html.Partial("~/Views/Shared/CouseCreateManage_Menu_Left.cshtml")

            <!--课程图片-->



            <div class="col-md-10">



                <div class="panel panel-default panel-col">
                    <div class="panel-heading">
                        课程图片
                    </div>
                    <div class="panel-body">

                        <div class="form-group clearfix">
                            <div class="col-md-offset-2 col-md-8 controls">
                                @if (Model.CImage == null)
                                {
                                    <img class="img-responsive" src="~/Content/img/course.png" style="width:480px;height:270px" />
                                }
                                else
                                { <img class="img-responsive" src="~/Content/images/@Model.CImage" style="width:480px;height:270px" />
                                }

                            </div>
                        </div>
                        <div class="form-group clearfix">
                            <div class="col-md-offset-2 col-md-8 controls">
                                <p class="help-block">你可以上传jpg, gif, png格式的文件, 图片建议尺寸至少为480x270。<br>文件大小不能超过<strong>2M</strong>。</p>
                            </div>
                        </div>
                        <div class="form-group clearfix">
                            <form action="/Course/AddImage" method="post" enctype="multipart/form-data">
                                <div class="col-md-offset-2 col-md-8 controls">
                                    <a data-widget-cid="widget-0" id="upload-picture-btn" class="btn btn-fat  webuploader-container" data-upload-token="NHx0bXB8aW1hZ2V8MTQ0OTUwNTUzMnw4Yzg5NjgzNDRiYzdiNjc0ZmMxNWE5ODNmMWE3MjQwZg" data-goto-url="/course/99/manage/picture/crop">
                                        @*<div class="webuploader-pick">选择要上传的图片</div>*@

                                        <div style="position: absolute; top: 6px; left: 30px; width: 182px; height: 100px; overflow: hidden; bottom: auto; right: auto;" id="rt_rt_1a5u315ae70l4h06fdk918gh1">

                                          
                                           

                                            <label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: none repeat scroll 0% 0% rgb(255, 255, 255);"></label>
                                        </div>
                                        <div class="col-md-8">
                                            <input type="file" name="CImage" class="btn btn-default" />
                                        </div>
                                        <div class="col-md-4"><input type="submit" value="保存" class="btn btn-danger" />  </div>

                                    </a>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <!--课程图片-->
        </div>

          

    </div>

    <script>
        var app = {};
        app.debug = false;
        app.version = '6.9.3';
        app.httpHost = 'http://www.zhishile.com';
        app.basePath = '';
        app.theme = 'jianmo';
        app.themeGlobalScript = 'theme/global-script';
        app.jsPaths = { "common": "common", "theme": "\/themes\/jianmo\/js", "customwebbundle": "\/bundles\/customweb\/js", "customadminbundle": "\/bundles\/customadmin\/js", "topxiawebbundle": "\/bundles\/topxiaweb\/js", "topxiaadminbundle": "\/bundles\/topxiaadmin\/js", "classroombundle": "\/bundles\/classroom\/js" };
        app.crontab = '/common/crontab';

        var CKEDITOR_BASEPATH = app.basePath + '/assets/libs/ckeditor/4.6.7/';
        app.config = { "api": { "weibo": { "key": "" }, "qq": { "key": "" }, "douban": { "key": "" }, "renren": { "key": "" } }, "cloud": { "video_player": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/GrindPlayer.swf", "video_player_watermark_plugin": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/Watermake-1.0.3.swf", "video_player_fingerprint_plugin": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/Fingerprint-1.0.1.swf" }, "loading_img_path": "\/assets\/img\/default\/loading.gif?6.9.3" };
        app.arguments = {};
        app.controller = 'user/list';

        app.scripts = null;

        app.uploadUrl = '/file/upload';
        app.imgCropUrl = '/file/img/crop';
        app.lessonCopyEnabled = '0';
        app.mainScript = '/bundles/topxiaadmin/js/admin-app.js?6.9.3';
    </script>
    <script src="/Content/js/sea.js?6.9.3"></script>
    <script src="/Content/js/seajs-style.js?6.9.3"></script>
    <script src="/Content/js/seajs-global-config.js?6.9.3"></script>
    <script>
        seajs.use(app.mainScript);
    </script>  <div id="modal" class="modal"></div>
    <div class="fixed-bar">
        <a href="/admin/feedback" target='_blank' class="icon-question-text feedback">
            <i class="es-icon es-icon-help"></i>
            <span>产品<br />反馈</span>
        </a>
    </div>
</body>

</html>
